package com.myzl.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取配置文件的bean
 *
 * @author cew
 * @date 2022年10月31日14:20:20
 **/
@Component
@ConfigurationProperties(prefix = "video-config")
@Data
public class VideoConfig {

	/** nginx推送ip */
	private static String flvIp;
	/** nginx推送端口 */
	private static String flvPort;
	/** nginx拉取端口 */
	private static String pullPort;
	/** Dll路径 */
	private static String dllPath;
	/** 截取图片 保存路径 按日期存放 */
	private static String picPath;
	/** 截取图片 保存路径 按日期存放 */
	private static String aiPath;
	/** ffmpeg路径 */
	private static String ffmpegPath;

	public static String getFlvIp() {
		return flvIp;
	}

	public void setFlvIp(String flvIp) {
		VideoConfig.flvIp = flvIp;
	}

	public static String getFlvPort() {
		return flvPort;
	}

	public void setFlvPort(String flvPort) {
		VideoConfig.flvPort = flvPort;
	}

	public static String getPullPort() {
		return pullPort;
	}

	public void setPullPort(String pullPort) {
		VideoConfig.pullPort = pullPort;
	}


	public static String getDllPath() {
		return dllPath;
	}

	public void setDllPath(String dllPath) {
		VideoConfig.dllPath = dllPath;
	}

	public static String getPicPath() {
		return picPath;
	}

	public void setPicPath(String picPath) {
		VideoConfig.picPath = picPath;
	}

	public static String getAiPath() {
		return aiPath;
	}

	public void setAiPath(String aiPath) {
		VideoConfig.aiPath = aiPath;
	}

	public static String getFfmpegPath() {
		return ffmpegPath;
	}

	public void setFfmpegPath(String ffmpegPath) {
		VideoConfig.ffmpegPath = ffmpegPath;
	}
}
